<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_goods.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_goods.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_goods',
                    name: 'T_goods',
                    url: "/T_goods/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_creator_id":"","c_name":"","c_name2":"","c_number_limit":"","c_price":"","c_purchase_limit":"","c_refund_advance_time":"","c_refund_advance_time_type":"","c_snow_level":"","c_snowseason":"","c_tags":"","c_ticket_effective_end_time":"","c_ticket_effective_start_time":"","c_ticket_validity":"","c_time_span_type":"","c_timing_method":"","c_is_secret_price":"","c_type":"","c_is_real_name":"","c_is_free_ticket":"","c_creator_name":"","c_date_type":"","c_deposit":"","c_disabled":"","c_duration":"","c_duration_gift":"","c_effective_end_time":"","c_effective_start_time":"","c_free_ticket_type":"","c_free_ticket_type_number":"","c_group_order":"","c_id":"","c_is_can_back":"","c_is_can_delete":"","c_is_evening_ticket":"","c_is_member_price":"","c_verification_rules":""},
                editFormOptions: [[{"title":"c_tags","field":"c_creator_id","type":"text"},
                               {"title":"\t c_name","field":"c_name","type":"text"},
                               {"title":"c_name2","field":"c_name2","type":"text"},
                               {"title":"数量限制","field":"c_number_limit","type":"text"}],
                              [{"title":"c_price","field":"c_price","type":"text"},
                               {"title":"购买限制","field":"c_purchase_limit","type":"text"},
                               {"title":"退款提前时间(1：天，2：小时)","field":"c_refund_advance_time","type":"text"},
                               {"title":"退款提前时间(1：天，2：小时)","field":"c_refund_advance_time_type","type":"text"}],
                              [{"title":"c_snow_level","field":"c_snow_level","type":"text"},
                               {"title":"雪季","required":true,"field":"c_snowseason","type":"text"},
                               {"title":"c_tags","field":"c_tags","type":"text"},
                               {"title":"票有效期结束时间","field":"c_ticket_effective_end_time","disabled":true,"type":"datetime"}],
                              [{"title":"票有效期开始时间","field":"c_ticket_effective_start_time","disabled":true,"type":"datetime"},
                               {"title":"c_ticket_validity","field":"c_ticket_validity","type":"text"},
                               {"title":"c_time_span_type","field":"c_time_span_type","type":"text"},
                               {"title":"c_time_span_type","field":"c_timing_method","type":"text"}],
                              [{"title":"c_is_secret_price","field":"c_is_secret_price","type":"text"},
                               {"title":"c_type","field":"c_type","type":"text"},
                               {"title":"c_is_real_name","field":"c_is_real_name","type":"text"},
                               {"title":"是否为免费票","field":"c_is_free_ticket","type":"text"}],
                              [{"title":"c_creator_name","field":"c_creator_name","type":"text"},
                               {"title":"c_creator_name","field":"c_date_type","type":"text"},
                               {"title":"c_deposit","field":"c_deposit","type":"text"},
                               {"title":"是否可用","field":"c_disabled","type":"text"}],
                              [{"title":"c_duration","field":"c_duration","type":"text"},
                               {"title":"c_duration_gift","field":"c_duration_gift","type":"text"},
                               {"title":"有效结束时间","field":"c_effective_end_time","disabled":true,"type":"datetime"},
                               {"title":"有效开始时间","field":"c_effective_start_time","disabled":true,"type":"datetime"}],
                              [{"title":"c_free_ticket_type","field":"c_free_ticket_type","type":"text"},
                               {"title":"免费票数量","field":"c_free_ticket_type_number","type":"text"},
                               {"title":"c_group_order","field":"c_group_order","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"}],
                              [{"title":"c_is_can_back","field":"c_is_can_back","type":"text"},
                               {"title":"是否可删除","field":"c_is_can_delete","type":"text"},
                               {"title":"是否为夜场票","field":"c_is_evening_ticket","type":"text"},
                               {"title":"c_is_member_price","field":"c_is_member_price","type":"text"}],
                              [{"title":"核销入账","field":"c_verification_rules","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_creator_id',title:'c_tags',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_name',title:'	 c_name',type:'string',width:120,align:'left'},
                       {field:'c_name2',title:'c_name2',type:'string',width:120,align:'left'},
                       {field:'c_number_limit',title:'数量限制',type:'int',width:120,align:'left'},
                       {field:'c_price',title:'c_price',type:'decimal',width:120,align:'left'},
                       {field:'c_purchase_limit',title:'购买限制',type:'int',width:120,align:'left'},
                       {field:'c_refund_advance_time',title:'退款提前时间(1：天，2：小时)',type:'decimal',width:120,align:'left'},
                       {field:'c_refund_advance_time_type',title:'退款提前时间(1：天，2：小时)',type:'int',width:120,align:'left'},
                       {field:'c_snow_level',title:'c_snow_level',type:'string',width:120,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_tags',title:'c_tags',type:'string',width:120,align:'left'},
                       {field:'c_ticket_effective_end_time',title:'票有效期结束时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_ticket_effective_start_time',title:'票有效期开始时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_ticket_validity',title:'c_ticket_validity',type:'string',width:120,align:'left'},
                       {field:'c_time_span_type',title:'c_time_span_type',type:'string',width:120,align:'left'},
                       {field:'c_timing_method',title:'c_time_span_type',type:'string',width:120,align:'left'},
                       {field:'c_is_secret_price',title:'c_is_secret_price',type:'sbyte',width:120,align:'left'},
                       {field:'c_type',title:'c_type',type:'string',width:120,align:'left'},
                       {field:'c_is_real_name',title:'c_is_real_name',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_free_ticket',title:'是否为免费票',type:'sbyte',width:120,align:'left'},
                       {field:'c_creator_name',title:'c_creator_name',type:'string',width:120,align:'left'},
                       {field:'c_date_type',title:'c_creator_name',type:'string',width:120,align:'left'},
                       {field:'c_deposit',title:'c_deposit',type:'decimal',width:120,align:'left'},
                       {field:'c_disabled',title:'是否可用',type:'sbyte',width:120,align:'left'},
                       {field:'c_duration',title:'c_duration',type:'decimal',width:120,align:'left'},
                       {field:'c_duration_gift',title:'c_duration_gift',type:'decimal',width:120,align:'left'},
                       {field:'c_effective_end_time',title:'有效结束时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_effective_start_time',title:'有效开始时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_free_ticket_type',title:'c_free_ticket_type',type:'string',width:120,align:'left'},
                       {field:'c_free_ticket_type_number',title:'免费票数量',type:'int',width:120,align:'left'},
                       {field:'c_group_order',title:'c_group_order',type:'int',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_is_can_back',title:'c_is_can_back',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_can_delete',title:'是否可删除',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_evening_ticket',title:'是否为夜场票',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_member_price',title:'c_is_member_price',type:'sbyte',width:120,align:'left'},
                       {field:'c_verification_rules',title:'核销入账',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
